package com.example.easyexcel.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.easyexcel.domain.DynamicFields;
import com.example.easyexcel.enums.TableCodeEnum;
import com.example.easyexcel.service.DynamicFieldsService;
import com.example.easyexcel.mapper.DynamicFieldsMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author wangnian
* @description 针对表【dynamic_fields】的数据库操作Service实现
* @createDate 2025-02-17 15:39:13
*/
@Service
public class DynamicFieldsServiceImpl extends ServiceImpl<DynamicFieldsMapper, DynamicFields>
    implements DynamicFieldsService{

    @Override
    public List<DynamicFields> getDataWithShow(String tableName) {
        return this.lambdaQuery().eq(DynamicFields::getTableName, TableCodeEnum.STU_INFO.getTableName()).eq(DynamicFields::getIsShow, true).orderByAsc(DynamicFields::getOrderNum).list();
    }
}




